/**
 * 
 */
package us.gaaoc.framework.logic.validation;

import us.gaaoc.framework.util.validators.DateValidator;

/**
 * @author mcelratr
 *
 */
public class DateValidationLogic {

	public Boolean validateMMDDYYYYFormatDate (String dateStringPassedIn) {
		String dateToCheck = dateStringPassedIn;
		DateValidator dv = new DateValidator();
		Boolean validDate = false;
		String dateFormat = "MM/dd/yy";
		Boolean validDateCheck1 = dv.validateDate(dateToCheck, dateFormat);
		String altDateFormat = "MM/dd/yyyy";
		Boolean validDateCheck2 = dv.validateDate(dateToCheck, altDateFormat);
		if (validDateCheck1 || validDateCheck2) {
			validDate = true;
		}
		
		return validDate;
	}
	
	
}
